package raft

import (
	`time`
)

// identity
const (
	Leader = iota
	Follower
	Candidate
)

// log action
const (
	Set = iota
	Del = iota
)

const (
	HeartbeatTimeout  = 400 * time.Millisecond
	VoteForTimeOut    = 400 * time.Millisecond
	NextPreVote       = 500 * time.Millisecond
	BroadcastInterval = 100 * time.Millisecond // HeartBeat
	CommitInterval    = 100 * time.Millisecond
)
